package com.mj.boot.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author zmj
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "gear")
public class GearProperties {

    private WebLog webLog = new WebLog();

    @Data
    public static class WebLog {

        private boolean enabled = true;

        private boolean write = false;

    }

    @Data
    public static class SpringLog {

        private boolean bean = true;

    }
}
